::-webkit-scrollbar{
    height: 0.7rem;
    width: 0.7rem;
}
::-webkit-scrollbar-track{background-color:lightgray;}
::-webkit-scrollbar-thumb{background-color:#3f3f3f;}
::-webkit-scrollbar-thumb:active{background-color:#222;}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"]{
    -moz-appearance: textfield;
}

html{
    font-size: 1em;
    font-family: "Microsoft YaHei", serif !important;
}
body{
    height:100vh;
    width: 100vw;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: "Microsoft YaHei", serif;
    background-color: white;
	font-size: inherit;
}
*:focus { outline: none !important; }
*{ outline: none !important;  }

.popover-content{
    padding: 3px 4px;
}
.popover{
    max-width: none !important;
	z-index: 10;
}

.middle-vertical{
    height:inherit;
    display: flex;
    align-items: center;
}

.yahei-font{
	font-family: "Microsoft YaHei", serif;
}

#top-panel, #pdf-top{
    height: 3rem;
    margin-bottom: 0;
}

#navigation, #pdf-nav{
    height: 3rem;
    min-height: 0;
    display: flex;
    align-items:center;
}

#modes{
    width: 16rem;
    justify-content: center;
    z-index: 100;
}

#page-controller{
    width: 10rem;
    justify-content: center;
    margin-left: calc(50vw - 16rem - 5rem);
}

#fullscreen-controller, #slide-play{
    font-size: 1.3rem !important;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 3px;
    height: 2rem !important;
    width: 2rem !important;
    margin-right: 6px;
}
#fullscreen-controller{
    z-index: 100;
}
#fullscreen-controller:hover, #slide-play:hover{
    background-color: lightgray;
}

#user-files-block, #highlighter-file-block{
    position: absolute;
    right: 0;
    margin-right: 0.5rem;
    display: flex;
    align-items:center;
}

#files,#user{
    font-size: 1.5rem;
    margin-right: 1.5rem;
    text-align: center;
    display: inline-block;
    border-radius: 6px;
}

#files:hover,#user:hover{
    background-color: rgba(100,100,100,0.2);
    cursor: pointer;
}


#left-float-panel{
    display: flex;
    align-items: center;
    height:calc(100vh - 4.5rem);
    position: absolute;
    top: 3rem;
    margin-left: 1rem;
}

#tools-container{
    height: 20.1rem;
	width: 3rem;
	z-index: 10;
}

#tools{
}

#palette{
    margin-top: 1rem;
    height: 2.3rem;
    font-size: 1.5rem;
}


.canvas-container{
    width: calc(100vw - 4rem) !important;
    margin-left: 2rem;
    margin-right: 2rem;
    height: calc(100vh - 4.5rem - 0.8rem) !important;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    position: relative;
    margin-top: 0.8rem;
}

canvas{
    height:99% !important;
    width: auto !important;
    position:absolute;
    left:0;
    right:0;
    margin: 0.3% auto auto;
}

#main-canvas{
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    /*background-color: #fcfcfc;*/
    border: solid lightgray 1px;
    border-radius: 4px;
}


#right-float-panel{
    display: flex;
    align-items:center;
    height:10rem;
    position: absolute;
    top: calc(50% - 5rem);
    right: 0;
    margin-right: 1rem;
    font-size: 1.1rem;
}

#function-btn-container{
    width: inherit;
}

.function-button{
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    float: right;
    border-radius: 10px;
}

.function-button:hover{
    background-color: rgba(100,100,100,0.1);
}
#bottom-panel{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1rem;
    margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

#status{
	display: inline-block;
	width: 33vw;
	text-align:right;
	padding-right: 10vw;
	vertical-align:top;
}

#file-name-container{
    text-align: center;
    width: 100%;
    display: inline-block;
    left: 0;
    top: 2px;
    position: absolute;
}
#file-name-container label{
	display: inline-block;
}

#file-name{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 30vw;
	display: inline-block;
    line-height: 0.9rem;
}

.tool-btn{
    padding: 0 !important;
    width: 3rem !important;
}

.tool-icon, #palette-icon{
    height: 2.3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pen-size{
    border: none;
    width: 3rem;
}

.pen-size-line{
    background-color: black;
    display: flex;
    align-items:center;
    width: 2.2rem;
    margin: 0.3rem -6px;
}

.fragment{

}

#brush-fragment{
	position: relative;
    left: 2.5rem;
    top: -2.3rem;
	width: 3rem;
	padding: 0;
}

#choose-brush label{
	padding: 5px 0;
	width: 3rem;
	font-weight: bold;
	font-size: 0.9rem;
}

.text-size{
    margin: 0 -6px !important;
	font-size: 0.5rem;
}
#text-size-controller button{
	height: 2.3rem;
}

#text-size-value{
    font-size: 1rem;
	padding:0;
	font-weight: bold;
	font-family: "Microsoft YaHei", serif;
}

#color-picker-container{
    height: 8rem;
    padding: 0;
}

#picker {
    width: 8rem;
    height: 8rem;
    float: left;
    cursor: crosshair;
}
#slide {
    width: 2rem;
    height: 8rem;
    float: right;
    cursor: pointer;
}
#files-table{
    font-size: 0.9rem;
    width: calc(15rem + 12rem + 5rem);
    font-family: "Microsoft YaHei", serif;
}

#files-table tbody{
    display: block;
    max-height: 50vh;
    overflow-y: auto;
}

#files-table thead{
    display: block;
}

#files-table thead .file-name span{
	float: left;
}

#new-file-btn{
    float: right;
    margin: -8px;
}
tr{
    width: inherit;
}
.file-name{
    width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 15rem;
    padding-right: 2rem !important;
    cursor: pointer;
}

.file-time{
    width: 12rem;
}

.file-operation{
    width: 5rem;
}

.file-rename, .file-delete{
    cursor: pointer;
    font-size: 1rem;
}
.file-rename{
    margin-right: 0.5rem;
}

.file-rename:hover{
    color: blue;
}

.file-delete:hover{
    color: red;
}

#palette-fragment, #files-fragment{
    display: none;
    position: relative;
    padding: 3px;
}

#palette-fragment{
	width: 10.6rem;
}

#palette-fragment .arrow{
    left: 1rem;
}

#pencil-fragment, #text-fragment, #shape-fragment{
    display: none;
    position: relative;
    left: 3.1rem;
    border: 0;
    padding: 0;
    top: -2.3rem;
    margin: 0;
    width: 3rem;
}

#text-size-controller, #choose-shape{
    width: 3rem;
}


.right-arrow{
    top: 1rem !important;
}

.zero-wrapper{
    margin: 0;
    padding: 0;
    border: 0;
    height: 0;
    width: 0;
}

#files-fragment{
    width: 33rem;
    position: absolute;
    left: -25rem;
    top: 2.3rem;
}

#files-fragment, #user-fragment{
    z-index: 15;
}

#files-fragment .arrow{
    left: 26.5rem;
}


#user-tel{
    float: right;
    margin-right: 0.5rem;
}

#user-fragment .btn-group-vertical{
    margin-top: 0.5rem;
    width: 100%;
}

#user-fragment{
    width: 9.5rem;
    font-family: "Microsoft YaHei", serif !important;
    padding-top: 1rem;
    position: absolute;
    top: 2.3rem;
}

#user-fragment .arrow{
    left: 6rem;
}

#pdf-panel{
    height: 100vh;
    width: 100vw;
    z-index: 99;
    position: fixed;
    top: 100vh;
    background-color: white;
}
#pdf-page-controller{
    width: 12rem;
    justify-content: center;
    margin-left: calc(50vw - 7rem);
}

#pdf-content{
    height: calc(100% - 3rem);
    width: 100%;
}

#pdf-content-frame{
    height: 100%;
    width: 100%;
}

#highlighter, #pdf-file{
    font-size: 0.9rem;
    margin-right: 1.5rem;
    text-align: center;
    display: inline-block;
}

#highlighter{
    font-size: 1.5rem;
}

.color-item{
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0.2rem;
    border-radius: 50%;
    cursor: pointer;
}

#highlighter-fragment{
    width: 7rem;
    position: relative;
    left: -6.5rem;
    top: 1rem;
}

#pageNumber{
    width: 2rem;
    text-align: right;
    border: none;
}

#numPages{
    width: 2.5rem;
    display: inline-block;
    text-align: left;
}

#pdf-page-controller button{
    height: 2.1rem;
}

#choose-shape label{
	display: flex;
    align-items:center;
	justify-content: center;
	height: 2.3rem;
	width: 3rem;
	padding: 0;
}

.shape-line{
	background-color: black;
    width: 70%;
	height: 2px;
}

.shape-rect{
	width: 1.6rem;
	height: 1rem;
	border: solid black 2px;
}

.shape-circle{
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	border: solid black 2px;
}

.shape-triangle{
	background: url(../icon/triangle.png)no-repeat;
	background-size: contain;
	height: 1.5rem;
	width: 1.5rem;
}

.shape-arrow{
    background: url(../icon/arrow.png)no-repeat;
    background-size: contain;
    height: 60%;
    width: 60%;
}

.shape-ellipse{ 
	width: 2rem;
	height: 1.2rem;
	border-radius: 50%;
	border: solid black 2px;
} 

.shape-star{
	background: url(../icon/star.png)no-repeat;
	background-size: contain;
	height: 1.8rem;
	width: 1.8rem;
}

#info-panel{
	position: absolute;
	top: 3.2rem;
	width: 20rem;
	float:right;
	right: 0;
	margin:0;
	background-color: rgba(250,250,230, 1);
    color: #ee4405;
    z-index: 20;
	display: none;
}

#info-panel .panel-body{
	padding: 8px 20px 8px 12px;
}

#info-panel-content{
	float:left;
	font-size: 0.9rem;
}

#info-panel-close{
	float: right;
	cursor: pointer;
	font-size: 1.2rem;
	margin: -0.3rem 0;
	color: rgb(255,150,100);
}

#shape-fill-color{
    background: url(../icon/transparent.jpg) no-repeat;
    background-size: cover;
	height: 1.3rem;
    width: 1.7rem;
}

#shape-fragment{
	top: -4.5rem;
}

#shape-fragment .arrow{
	top: 3.3rem !important;
}

#shape-fill-label{
	margin-bottom: 3px;
	border: 1px solid gray;
	border-radius: 6px;
}

#fill-slide{
	height: calc(7*2.3rem - 1rem - 2px);
    margin-top: -5px;
}
#fill-picker{
	display:none;
}

#shape-fill-palette{
	position:absolute;
	z-index:5;
	background-color: white;
	cursor: pointer;
	top: 2.3rem;
    border: solid 1px gray;
    border-radius: 6px;
	height: 0;
	display:none;
}

#fill-transparent{
	background: url(../icon/transparent.jpg) repeat-y;
    background-size: contain;
	height: 1rem;
    width: 1rem;
    border-top-left-radius: 6px;
    border: solid 0;
    display: inline-block;
}
#fill-block{
    height: 1rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: solid 0;
    display: inline-flex;
}

#fill-white, #fill-black{
    display: inline-block;
    height: 1rem;
    width: 1rem;
    margin: 0;
    padding: 0;
}

#fill-white{
    background: white;
}
#fill-black{
    background: black;
    border-top-right-radius: 6px;
    border: solid 0;
}

#login-error, #reset-error, #reg-error{
    color: red;
    font-size: 0.9rem;
}

.file-name:hover{
    text-decoration: underline;
}

#doc-loading{
    width: 10rem;
    height: 10rem;
    position: absolute;
    top: calc(50vh - 5rem + 3rem);
    left: calc(50vw - 5rem);
    background-color: rgba(0,0,0,0.8);
    border-radius: 2rem;
    z-index: 12;
    display: none;
}

#doc-loading div{
    display: flex;
    height: 100%;
    width: 100%;
    align-items:center;
    justify-content:center;
    background: transparent;
}

#loading-gif{
    width: 3rem;
}